﻿using Anke.SHManage.MSSQLDAL;
using Anke.SHManage.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;

namespace Anke.SHManage.BLL
{
    public class EventInfoBLL
    {
        private EventInfoDAL dal = new EventInfoDAL();

        //查询事件信息列表
        public object GetEventInfoList(int pageSize, int pageIndex, DateTime start, DateTime end, string contactTel, string telephoneNumber, string localAddress,
                                       string patientName, string sendAddress, string dispatcher, string eventType, string center, string station,
                                       string ambulanceCode, E_StatisticsPermisson em, string selfWorkCode, string selfCenterID, string selfStationID, string eventDispatchCenterID)
        {
            return dal.GetEventInfoList(pageSize, pageIndex, start, end, contactTel, telephoneNumber, localAddress, patientName, sendAddress,
                                        dispatcher, eventType, center, station, ambulanceCode, em, selfWorkCode, selfCenterID, selfStationID, eventDispatchCenterID);
                              
        }
        //事件类型
        public object GetEventTypeList()
        {
            return dal.GetEventTypeList();
        }
        //事件来源
        public object GetEventSourceList()
        {
            return dal.GetEventSourceList();
        }
        //病情判断
        public object GetIllnessStateList()
        {
            return dal.GetIllnessStateList();
        }
        //车辆分站
        public object GetStationList(string eventDispatchCenterID)
        {
            return dal.GetStationList(eventDispatchCenterID);
        }
        //车辆编码
        public object GetAmbulanceCodeList(string eventDispatchCenterID)
        {
            return dal.GetAmbulanceCodeList(eventDispatchCenterID);
        }
        //调度员
        public object GetDispatcherList(string eventDispatchCenterID)
        {
            return dal.GetDispatcherList(eventDispatchCenterID);
        }
        //司机
        public object GetDriverList(string eventDispatchCenterID)
        {
            return dal.GetDriverList(eventDispatchCenterID);
        }
        //医生
        public object GetDoctorList(string eventDispatchCenterID)
        {
            return dal.GetDoctorList(eventDispatchCenterID);
        }
        //护士
        public object GetNurseList(string eventDispatchCenterID)
        {
            return dal.GetNurseList(eventDispatchCenterID);
        }
        //担架员
        public object GetStretcherList(string eventDispatchCenterID)
        {
            return dal.GetStretcherList(eventDispatchCenterID);
        }
             
    }
}
